package com.tsing.wms.vo.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author TheTsing
 * @create 2022-04-13 22:02
 */
@Data
public class RecordRespVO {

    private String id;

    @ApiModelProperty("仓库id")
    private String storehouseId;

    @ApiModelProperty("下单人员id")
    private String userId;

    @ApiModelProperty("出库还是入库 0 出库   1 入库")
    private Integer type;

    @ApiModelProperty("描述")
    private String description;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户电话")
    private String userPhone;

    @ApiModelProperty("仓库名")
    private String storehouseName;

    @ApiModelProperty("仓库电话")
    private String storehousePhone;

    @ApiModelProperty("货物种类")
    private Long goodsTypeCount;

    @ApiModelProperty("货物总数")
    private Long goodsCount;

    @ApiModelProperty("出入库清单")
    private List<RecordDetailRespVO> recordDetails;

    @Data
    public static class RecordDetailRespVO {

        @ApiModelProperty("货物id")
        private String goodsId;

        @ApiModelProperty("货物名称")
        private String goodsName;

        @ApiModelProperty("数量")
        private Integer amount;

        @ApiModelProperty("规格")
        private String specs;

        private BigDecimal price;

    }


}
